<div class="view">
<h2><?php __('DANH MỤC GPS');?></h2>
<p>
<?php
$paginator->options(array('url'=>$this->passedArgs));
echo $paginator->counter(array(
'format' => 'Hiện có %count% mẫu tin - Trang %page%/%pages%'
));
?></p>
<table cellpadding="0" cellspacing="0">
<tr>
	<th><?php echo $paginator->sort('Hoành độ');?></th>
	<th><?php echo $paginator->sort('Tung độ');?></th>
	<th><?php echo $paginator->sort('Sổ tay');?></th>
	<th class="actions"><?php __('Hành động');?></th>
</tr>
<?php
$i = 0;
foreach ($gpses as $gpse):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>
		<td>
			<?php echo $gpse['Gpse']['HOANHDO']; ?>
		</td>
		<td>
			<?php echo $gpse['Gpse']['TUNGDO']; ?>
		</td>
		<td>
			<?php echo $gpse['Gpse']['sotay_id']; ?>
		</td>
		<td class="actions">
			<?php echo $html->link(__('Xem', true), array('action' => 'view', $gpse['Gpse']['id'])); ?>
			<?php echo $html->link(__('Sửa', true), array('action' => 'edit', $gpse['Gpse']['id'])); ?>
			<?php echo $html->link(__('Xóa', true), array('action' => 'delete', $gpse['Gpse']['id']), null, sprintf(__('Bạn thật sự muốn xóa ?', true), $gpse['Gpse']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
</table>
</div>
<div class="paging">
	<?php echo $paginator->prev('<< '.__('trước', true), array(), null, array('class'=>'disabled'));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('sau', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Thêm GPS', true), array('action' => 'add')); ?></li>
	</ul>
</div>
